/**
 * Copyright (C) 2009-2012, KingHool.com
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see http://www.gnu.org/licenses.
 */
package com.kinghool.smodel.io.bean.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 
 * @Author Allen Deng(dengtailin@gmail.com) 
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface Array {
	/**
	 * the name of the node to hold the child
	 */
	String container() default "";
	
	/**
	 * the name of the child
	 * if not set, use the property name
	 */
	String child() default "";
	
	/**
	 * the name of add method name
	 */
	String add() default "";
	
	/**
	 * the name of get method name
	 * if not set, use "get" + {upperFirst(propertyName)} + "s"
	 */
	String get() default "";

	/**
	 * the name of set method name
	 * if not set, use "set" + {upperFirst(propertyName)} + "s"
	 */
	String set() default "";

	/**
	 * the name of clear method name
	 */
	String clear() default "";
}
